//
//  LZUserInfo.h
//  DoctorFAQs
//
//  Created by langZai on 2017/2/23.
//  Copyright © 2017年 zjq. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface LZUserInfo : NSObject<NSCoding>

@property (nonatomic,assign) BOOL isLogin;
@property (nonatomic,strong) NSString * uid;
@property (nonatomic,strong) NSString * phone;
@property (nonatomic,strong) NSString * passWord;
@property (nonatomic,strong) NSString * userName;
/** 年龄 */
@property (nonatomic,strong) NSString * userAge;
/** 性别 */
@property (nonatomic, strong) NSString *userSex;
/** 用户头像 */
@property (nonatomic,strong) NSString * userIcon;
/** 用户注册时间 */
@property (nonatomic,strong) NSString * userTime;

// 保存数据
//- (void)saveWithObject:(id)value key:(NSString *)key;
//// 获取数据
//- (id)getObject:(NSString *)key;
//// 删除所有数据
//- (void)deleteAllObject;
//// 删除一个数据
//- (void)deleteOneObject:(NSString *)key;
//// 存登录状态
//- (void)saveLoginStateWithValue:(BOOL)value Key:(NSString *)key;
//// 读取登录状态
//- (BOOL)boolWithKey:(NSString *)key;
//- (void)loginSucceed;
//- (void)loginOut;
//// 通过字典保存
//- (void)saveWithDictionary:(NSDictionary *)dict;


// 创建用户单例模型
+ (instancetype)shareInfo;
// 保存用户信息模型
+ (void)saveUserInfo:(LZUserInfo *)model;
// 获取用户信息模型
+ (LZUserInfo *)getUserInfo;
// 删除用户信息模型
+ (void)deleteUserInfo;


@end





